package com.larsgard.gedviewer.shared.ajax;

import java.io.Serializable;
import java.util.ArrayList;

import com.larsgard.gedviewer.shared.PersonDetails;
import com.larsgard.gedviewer.shared.ajax.SearchRequest.SearchType;
import com.larsgard.gedviewer.shared.entities.Person;

public class SearchResult implements Serializable {

    private static final long serialVersionUID = 5680761917542728065L;

    private ArrayList<Person> persons;
    private PersonDetails[] personDetails;
    private SearchType type;

    public void setPersons(ArrayList<Person> allPersons) {
	persons = allPersons;
    }

    public ArrayList<Person> getPersons() {
	return persons;
    }

    public void setPersonDetails(PersonDetails[] personDetails) {
	this.personDetails = personDetails;
    }

    public PersonDetails[] getPersonDetails() {
	return personDetails;
    }

    public void setType(SearchType type) {
	this.type = type;
    }

    public SearchType getType() {
	return type;
    }

}
